#!ipxe

# FreeDOS Operating System
# http://www.freedos.org

:freedos_menu
set os {{ releases.freedos.name }}
menu ${os}
item --gap ${os}
{% for item in releases.freedos.versions %}
item {{ item.code_name }} ${space} ${os} {{ item.name }}
{% endfor %}
choose freedos_version || goto freedos_exit
echo ${cls}
goto freedos_install || goto freedos_exit

:freedos_install
imgfree
kernel ${memdisk}
initrd ${freedos_mirror}/${freedos_base_dir}/${freedos_version}.zip
boot

:freedos_exit
clear menu
exit 0
